const mongoose = require('mongoose');

const Schema = mongoose.Schema;


const role = Schema({
  nickName: {
    type: String,
    required: true,
    unique: true,
    sparse:true
  },
  registerTime: {
    type: Date,
    default: Date.now
  },
  permission: {
    type: [String]
  }
})

module.exports = mongoose.model("role",role)